#include <iostream>
using namespace std;

int main()
{
   	int arr[90] = {0}, date, j, task[] = {1, 2, 4, 7, 15};
	
	for(int i = 1; i < 85; i++){
		arr[i] = i;
	}
	
    for(date = 1; date < 99; date += 7){
        for(int i = 0; i < 7; i++){
            printf("Date: %02d\t", date + i);
        }
        cout << endl;
        for(int i = 0; i < 5; i++){
            for(int j = 0; j < 7; j++){
                int index = date + j - task[i] + 1;
                if(index > 0 && index < 85){
                    if(index % 2 == 0){
                        printf("List %02d lower\t", arr[index] / 2);
                    }else{
                        printf("List %02d upper\t", arr[index] / 2 + 1);
                    }
                }else{
                    printf("-------------\t");
                }
            }
            cout << endl;
        }

        cout << "----------------------------------------------------------------------------------------------------------------" << endl;
    }
        
   	return 0;
}